<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<meta name="description" content="<?php if(is_home() || get_post_meta(get_the_ID(),'description', true) == '')
											echo get_option('boldy_description'); 
										else
											echo get_post_meta(get_the_ID(),'description', true);
								   ?>" />
<meta name="keywords" content="<?php if(is_home() || get_post_meta(get_the_ID(),'keywords',true) == '')
									 	echo get_option('boldy_keywords'); 
									 else
									 	echo get_post_meta(get_the_ID(),'keywords',true);  
									?>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/images/favicon.ico" />

<link href="<?php bloginfo('template_directory'); ?>/css/ddsmoothmenu.css" rel="stylesheet" type="text/css" />

<link href="<?php bloginfo('template_directory'); ?>/css/prettyPhoto.css" rel="stylesheet" type="text/css" />

<link href="<?php bloginfo('template_directory'); ?>/css/nivo-slider.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-1.4.2.min.js"></script>

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ddsmoothmenu.js"></script>

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.nivo.slider.pack.js"></script>

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.prettyPhoto.js"></script>

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/custom.js"></script>

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/cufon-yui.js"></script>

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/Museo_Slab_500_400.font.js"></script>



<?
	if(is_home())
		echo '<script type="text/javascript" src="'.get_bloginfo('template_directory').'/js/jquery.carouFredSel-5.6.4-packed.js"></script>
		<script type="text/javascript" src="'.get_bloginfo('template_directory').'/js/captify.tiny.js"></script>
		';

	if(is_singular('san-pham'))
	{
?>
		<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
	<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />

	<script type="text/javascript">
		$(document).ready(function() {
		
			$("a[rel=pro_image]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

		});
	function changepicture(i)
	{
		if(i == 1){
			document.getElementById('full_1').style.display = 'inline';
			document.getElementById('full_2').style.display = 'none';
			document.getElementById('full_3').style.display = 'none';
		}
		if(i == 2){
			document.getElementById('full_1').style.display = 'none';
			document.getElementById('full_2').style.display = 'inline';
			document.getElementById('full_3').style.display = 'none';
		}
		if(i == 3){
			document.getElementById('full_1').style.display = 'none';
			document.getElementById('full_2').style.display = 'none';
			document.getElementById('full_3').style.display = 'inline';
		}
	}
	
	$(document).ready(function(){
		$(".tabContents").hide(); 
		$(".tabContents:first").show();
		
		$("#tabContaier ul li a").click(function(){ 
			
			var activeTab = $(this).attr("title"); 
			$("#tabContaier ul li a").removeClass("active"); 
			$(this).addClass("active"); 
			$(".tabContents").hide(); 
			$("#"+activeTab).fadeIn(); 
		});
	});
</script>
<?	
	}
?>


<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

	<?php wp_get_archives('type=monthly&format=link'); ?>

	<?php wp_head(); ?>

</head>



<body <?php if(is_home()){

				echo 'id="home"';

			}elseif(is_category(get_option('boldy_portfolio')) || post_is_in_descendant_category( get_option('boldy_portfolio')) && !is_single()){

				echo 'id="portfolio"';

			}?>>

<!-- BEGINN MAINWRAPPER -->

<div id="mainWrapper">

	<!-- BEGIN WRAPPER -->

    <div id="wrapper">

		<!-- BEGIN HEADER -->

        <div id="header">

            <div id="logo"><a href="<?php bloginfo('url'); ?>/"><img src="<?php bloginfo('template_directory'); echo get_option('boldy_logo_img'); ?>" alt="<?php echo get_option('boldy_logo_alt'); ?>" /></a></div>

			<!-- LOGIN -->
         		<?php require_once('login.php'); ?>
            <!-- END LOGIN -->

            <!-- BEGIN MAIN MENU -->

            <?php if ( function_exists( 'wp_nav_menu' ) ){

            wp_nav_menu( array( 'theme_location' => 'main-menu', 'container_id' => 'mainMenu', 'container_class' => 'ddsmoothmenu', 'fallback_cb'=>'primarymenu') );

        }else{

            primarymenu();

        }?>
            <!-- END MAIN MENU -->
        </div>


        <!-- END HEADER -->		

		<!-- BEGIN CONTENT -->
		<?php
			if(!is_home()){
		?>
        <div class="jk-content-top" style="height:15px"></div>
        <?php
			}
		?>
		<div id="content">

<?php the_breadcrumb(); ?>
